package com.design.create.factory.simple_factory;

public class SimpleFactoryTest {

    public static void main(String[] args) {

        BMWFactory factory = new BMWFactory();
//        //生产320系列
//        BMW bmw320 = factory.createBMW(320);
//        //生产530系列
//        BMW bmw = factory.createBMW(530);

        //生产320系列
        BMW bmw320 = factory.createBMW320();
        //生产530系列
        BMW bmw = factory.createBMW530();
    }
}
